package edu.kit.aifb.ldstream.learner.tasks.mod;

import org.openrdf.model.URI;

public class  Property implements Comparable<Property>{

	private URI name;
	private boolean interdomain;
	private boolean bnode;
	
	Property(URI name){
		this.name = name;
	}

	@Override
	public int compareTo(Property o) {
		return this.name.stringValue().compareTo(o.name.stringValue());
	}
	
	@Override
	public boolean equals(Object o){
		return this.name.equals(o);
	}
	
	@Override
	public int hashCode(){
		return this.name.hashCode();
	}
	
	public void setBNode(){
		this.bnode = true;
	}
	
	public void setInterdomain(){
		this.interdomain = true;
	}
	
	public URI getName(){
		return this.name;
	}
	
	public boolean isBnode(){
		return this.bnode;
	}
	
	public boolean isInterdomain(){
		return this.interdomain;
	}
}
